package com.fruit.pojo.order;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;


public class Order {
	/**
	 * 订单主表对应字段
	 * */
	private int id;//订单ID
	private long userId;//用户id
	private String codePre;//订单编号前缀
	private String codeSuf;//订单编号后缀
	private String orderCode;//订单编号
	private int user_id;//用户ID
	private String state;//订单状态
	private String stateName;//订单状态名字
	private BigDecimal realPrice;//实际付款金额
	private BigDecimal totalPrice;//商品总价
	private String closingTime;//成交时间
	private String payTime;//付款时间
	private String createTime;//提交订单时间
	private String deliveryTime;//发货时间
	private String expectDeliveryTime;//预计发货时间
	private int version;//版本号
	
	
	/**
	 * 订单详情表对应字段
	 * */
	private long ogId;
	private int goods_id;//商品ID
	private String title;//商品标题
	private String subTitle;//商品副标题
	private String specDesc;//商品规格描述
	private String goodsThumb;//商品图片
	private BigDecimal currentPrice;//商品现价
	private BigDecimal tradePrice;//批发价
	private BigDecimal retailPrice;//零售价
	private BigDecimal bidPrice;//进价
	private int number;//数量
	private String unit;//商品单位
	private String buyUnit;//购买单位
	private int unitNumber;
	private String refundState;//退换状态 refund 退  change 换   new 增
	private String receiverName;//收货人姓名
	private String receiverPhone;//收货人手机
	private String receiverAddress;//收货人地址
	
	private String payMode;//支付方式
	private String payType;//支付类型（ALL 全款 ）
	private String payState;//支付状态('00'-未支付 '01'-已支付 '02'-已取消)
	private String finishTime;//支付完成时间
	private String remittanceCode;//汇付识别码 
	private String supplierName;//产地名称
	
	
	private List<Order> goodsList = new ArrayList<Order>();
	
	private Address address;
	private ComAccount account;
	private Invoice invoice;
	
	private int num;//一个订单的商品数量

	
	//相同订单下的商品总数
	private int sum;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getUser_id() {
		return user_id;
	}
	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public BigDecimal getRealPrice() {
		return realPrice;
	}
	public void setRealPrice(BigDecimal realPrice) {
		this.realPrice = realPrice;
	}
	public String getClosingTime() {
		return closingTime;
	}
	public void setClosingTime(String closingTime) {
		this.closingTime = closingTime;
	}
	public String getPayTime() {
		return payTime;
	}
	public void setPayTime(String payTime) {
		this.payTime = payTime;
	}
	public int getGoods_id() {
		return goods_id;
	}
	public void setGoods_id(int goods_id) {
		this.goods_id = goods_id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getSubTitle() {
		return subTitle;
	}
	public void setSubTitle(String subTitle) {
		this.subTitle = subTitle;
	}
	public String getSpecDesc() {
		return specDesc;
	}
	public void setSpecDesc(String specDesc) {
		this.specDesc = specDesc;
	}
	public String getGoodsThumb() {
		return goodsThumb;
	}
	public void setGoodsThumb(String goodsThumb) {
		this.goodsThumb = goodsThumb;
	}
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public String getReceiverName() {
		return receiverName;
	}
	public void setReceiverName(String receiverName) {
		this.receiverName = receiverName;
	}
	public String getReceiverPhone() {
		return receiverPhone;
	}
	public void setReceiverPhone(String receiverPhone) {
		this.receiverPhone = receiverPhone;
	}
	public String getReceiverAddress() {
		return receiverAddress;
	}
	public void setReceiverAddress(String receiverAddress) {
		this.receiverAddress = receiverAddress;
	}
	public BigDecimal getCurrentPrice() {
		return currentPrice;
	}
	public void setCurrentPrice(BigDecimal currentPrice) {
		this.currentPrice = currentPrice;
	}
	public List<Order> getGoodsList() {
		return goodsList;
	}
	public void setGoodsList(List<Order> goodsList) {
		this.goodsList = goodsList;
	}
	public int getSum() {
		return sum;
	}
	public void setSum(int sum) {
		this.sum = sum;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public String getDeliveryTime() {
		return deliveryTime;
	}
	public void setDeliveryTime(String deliveryTime) {
		this.deliveryTime = deliveryTime;
	}
	public String getCodePre() {
		return codePre;
	}
	public void setCodePre(String codePre) {
		this.codePre = codePre;
	}
	public String getCodeSuf() {
		return codeSuf;
	}
	public void setCodeSuf(String codeSuf) {
		this.codeSuf = codeSuf;
	}
	public BigDecimal getTradePrice() {
		return tradePrice;
	}
	public void setTradePrice(BigDecimal tradePrice) {
		this.tradePrice = tradePrice;
	}
	public BigDecimal getRetailPrice() {
		return retailPrice;
	}
	public void setRetailPrice(BigDecimal retailPrice) {
		this.retailPrice = retailPrice;
	}
	public BigDecimal getBidPrice() {
		return bidPrice;
	}
	public void setBidPrice(BigDecimal bidPrice) {
		this.bidPrice = bidPrice;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public String getBuyUnit() {
		return buyUnit;
	}
	public void setBuyUnit(String buyUnit) {
		this.buyUnit = buyUnit;
	}
	public String getRefundState() {
		return refundState;
	}
	public void setRefundState(String refundState) {
		this.refundState = refundState;
	}
	public String getStateName() {
		return stateName;
	}
	public void setStateName(String stateName) {
		this.stateName = stateName;
	}
	public String getOrderCode() {
		return orderCode;
	}
	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}
	public String getPayMode() {
		return payMode;
	}
	public void setPayMode(String payMode) {
		this.payMode = payMode;
	}
	public String getPayType() {
		return payType;
	}
	public void setPayType(String payType) {
		this.payType = payType;
	}
	public String getPayState() {
		return payState;
	}
	public void setPayState(String payState) {
		this.payState = payState;
	}
	public String getFinishTime() {
		return finishTime;
	}
	public void setFinishTime(String finishTime) {
		this.finishTime = finishTime;
	}
	public String getRemittanceCode() {
		return remittanceCode;
	}
	public void setRemittanceCode(String remittanceCode) {
		this.remittanceCode = remittanceCode;
	}
	public String getSupplierName() {
		return supplierName;
	}
	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}
	public long getUserId() {
		return userId;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
	public String getExpectDeliveryTime() {
		return expectDeliveryTime;
	}
	public void setExpectDeliveryTime(String expectDeliveryTime) {
		this.expectDeliveryTime = expectDeliveryTime;
	}
	public Address getAddress() {
		return address;
	}
	public void setAddress(Address address) {
		this.address = address;
	}
	public ComAccount getAccount() {
		return account;
	}
	public void setAccount(ComAccount account) {
		this.account = account;
	}
	public Invoice getInvoice() {
		return invoice;
	}
	public void setInvoice(Invoice invoice) {
		this.invoice = invoice;
	}
	public BigDecimal getTotalPrice() {
		return totalPrice;
	}
	public void setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public int getUnitNumber() {
		return unitNumber;
	}
	public void setUnitNumber(int unitNumber) {
		this.unitNumber = unitNumber;
	}
	public long getOgId() {
		return ogId;
	}
	public void setOgId(long ogId) {
		this.ogId = ogId;
	}
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	
}
